package com.melon.util;

import org.apache.commons.lang3.StringUtils;

import java.util.UUID;

/**
 * @author TianGua
 * @since 2024/10/17 - 13:33
 */
public class RandomUtil {
    public static String shortUUID(final int length) {
        String replace = StringUtils.replace(UUID.randomUUID().toString(), "-", "");
        return StringUtils.left(replace, length);
    }
}
